﻿@using Moonglade.Core
@model Moonglade.Model.CustomPage

@{
    ViewBag.TitlePrefix = Model.Title;
    ViewBag.HideSideBar = Model.HideSidebar;
}

@section head{
    <style>
        @Utils.RemoveWhiteSpaceFromStylesheets(Model.CssContent)
    </style>
}

@if (Settings.Value.AllowScriptsInCustomPage)
{
    @Html.Raw(Model.RawHtmlContent)
}
else
{
    @Html.Raw(Utils.RemoveScriptTagFromHtml(Model.RawHtmlContent))
}